xl: add support for 'channels'
authorDavid Scott <dave.scott@citrix.com>
Thu, 9 Oct 2014 09:17:32 +0000 (10:17 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 20 Oct 2014 12:51:29 +0000 (13:51 +0100)
commit0c09b6495e4ef39a486bb4e9e070bd045d5fed0e
tree2da545aa61672749b19a6cc79843ee764b684ddc
parent8878d01936594d2b6a4366bc7be191edbc546aa8
xl: add support for 'channels'

This adds support for channel declarations of the form:

 channel = [ "name=...,connection=...[,path=...][,backend=...]" ]

where 'name' is a label to identify the channel to the frontend.

If 'connection = pty' then the channel is connected to a pty in the
 backend domain
If 'connection = socket' then the channel is connected to a Unix domain
 socket given by 'path = ...' in the backend domain.

This patch also adds the command:

 xl channel-list <domain>

which allows the state of channels to be queried. In particular if
'connection=pty' this will show the path of the pty slave device.

Signed-off-by: David Scott <dave.scott@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
docs/man/xl.cfg.pod.5
docs/man/xl.pod.1
tools/libxl/xl.h
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c